package ch.janotta.slawo.da;

public final class AbilityValue implements Comparable<AbilityValue> {
  private int startingValue;
  private int currentValue;

  public AbilityValue(int aStartingValue) {
    this.startingValue = aStartingValue;
    this.currentValue = aStartingValue;
  }

  public int getStartingValue() {
    return startingValue;
  }

  public void setStartingValue(int startingValue) {
    this.startingValue = startingValue;
  }

  public int getCurrentValue() {
    return currentValue;
  }

  public void setCurrentValue(int currentValue) {
    this.currentValue = currentValue;
  }

  public String toString() {
    return currentValue + " (" + startingValue + ")";
  }

  @Override
  public int compareTo(AbilityValue o) {
    return this.currentValue - o.currentValue;
  }
}
